#-*- coding:utf-8 -*-
from mongoengine import Document
from mongoengine.fields import StringField, DateTimeField,IntField,BooleanField

class mrc_run_historys(Document):
    user_id=IntField()
    xml_code=StringField(default="")
    arduino_code=StringField(default="")
    is_show=IntField(default=1)   #用户自己是否可见
    create_time=DateTimeField()

    meta = {'db_alias': 'mrc'}


class sms_code(Document):
    """
    短信验证码记录
    """
    phone=StringField()
    code=StringField()
    create_time=DateTimeField()
    is_use=BooleanField(default=False)

    meta = {'db_alias': 'mrc'}


